package com.isasc.demo.pooled.datasource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: ywy
 * @date: 2022-10-17
 * @desc:
 */
@RestController
public class TestController {

    @Resource
    private JdbcTemplate jdbcTemplate;

    @RequestMapping("/test")
    public String test() {
        jdbcTemplate.execute("select * from orders");
        return "ok";
    }
}
